package com.cloud.wyf.Service;

import com.cloud.wyf.Entity.*;

import java.util.List;

public interface VoteService {
    List<LeaderShipScore> batchSelectLeaderShipByUAndP(List<String> leader,String part);
    List<LeaderShipScore> selelctAllLeaderShipScore();
    List<Leader> queryAllLeader(String token);
    List<LeaderScore> selectLeaderScoreByMiddelId(String middelid);
    List<OrdinaryScore> selectOrdinaryScoreByMid(String mid);
    List<Data> queryData(String token);
    List<Middel> queryAllMiddel(String token);//得到全部中层干部
    List<Ordinary> queryAllOrdinary(String token);//得到全部职工
    int isAuth(String token);//判断是否可以投票
    List<Middel> getNeedVote(String token);
    List<LeaderShip> getNeedLeaderShip(String token);
    List<LeaderShipScore> selelctLeaderShipScoreByUid(String uid);
    int addLeaderScoreMult(List<LeaderScore> list);
    int addMiddelScoreMult(List<MiddelScore> list);
    int addOrdinaryScoreMult(List<OrdinaryScore> list);
    int addLeaderShipScoreMult(List<LeaderShipScore> list);
    LeaderScore selectByLAndMId(String leaderid,String middelid);
    MiddelScore selectByMAndMId(String mvoteid,String mid);
    OrdinaryScore selectByOAndMId(String oid,String mid);
    LeaderShipScore selectLeaderShipByUAndP(String uid,String votepart);
    List<LeaderScore> selectLeaderScoreByUid(String leaderid);
    List<MiddelScore> selectMiddelScoreByMid(String mid);
    List<OrdinaryScore> selecOrdinaryScoreByOid(String oid);
    int updateLeaderScore(LeaderScore leaderScore);
    int updateMiddelScore(MiddelScore middelScore);
    int updateOrdinaryScore(OrdinaryScore ordinaryScore);
    int updateLeaderScoreQuit(String leaderid,String middelid);
    int updateMiddelScoreQuit(String mvoteid,String mid);
    int updateOrdinaryScoreQuit(String oid,String mid);
    int updateLeaderShipScore(LeaderShipScore leaderScore);
    int updateLeaderShipScoreQuit(String uid,String votepart);
    List<LeaderScore> selectLeaderScoreByOid(String middelid);
    List<OrdinaryScore> selectOrdinaryScoreByOid(String oid);
}
